import request from '@/http/request';
import { IDashboard } from '@/types/api';

export default {
    /**获取工作台汇总数据
     */
    getReportData() {
        return request.get<IDashboard.ReportData>('/order/dashboard/getReportData');
    },
    /**获取折线图数据
     */
    getLineData() {
        return request.get<IDashboard.LineData>('/order/dashboard/getLineData');
    },
    /**获取城市分布数据
     */
    getPieCityData() {
        return request.get<IDashboard.PieData[]>('/order/dashboard/getPieCityData');
    },
    /**获取年龄分布数据
     */
    getPieAgeData() {
        return request.get<IDashboard.PieData[]>('/order/dashboard/getPieAgeData');
    },
    /**获取雷达图数据
     */
    getRadarData() {
        return request.get<IDashboard.RadarData>('/order/dashboard/getRadarData');
    }
};
